$(function(){
	setInterval(function(){
		
		var tim = new Date();
		var xian = new Date(2016,8,3,0,0,0)
		
		var cha = Math.floor(Math.abs(tim-xian)/1000);
		var day = Math.floor(cha/86400);
		var hours = Math.floor(cha%86400/3600);
		var minutes = Math.floor(cha%86400%3600/60);
		var seconds = cha%60;
		$("#new .newone .onright .ordo h3").html("剩余"+"&nbsp;<span>"+hours+"</span>&nbsp;"+"小时 <span>"+minutes+"</span>&nbsp;"+"分钟 <span>"+seconds+"</span>&nbsp;"+"秒");
		$(".ordo h3 span").css({"color":"red"})
	},1000)
	   
})


//$(function(){
////	var timer = null;
////	var i = 5;
////				
////	timer = setInterval(function(){
////		i--;
////		
////		if(i == 0){
////			clearInterval(timer);
////		    window.location.href = "index.html"; 
////		    
////		}
////	},1000)
//
//	setTimeout(function(){
//		window.location.href = "index.html";
//	},5000)
//	
//	
//
//
//})
